<!-- Navigation -->
<nav id="main-menu">
<ul>
  <li
    <?php echo (Yii::app()->controller->id == 'site' && Yii::app()->controller->action->id == 'index')?'class="current_page_item"':''?>>
    <a href="<?php echo Yii::app()->baseUrl?>" title=""> <?php echo Yii::t('zii', 'Home')?>
  </a> <span> </span>
  </li>
  
  <li
    <?php echo (Yii::app()->controller->id == 'site' && Yii::app()->controller->action->id == 'about')?'class="current_page_item"':''?>>
    <a href="<?php echo Yii::app()->baseUrl?>/site/about"
    title="<?php echo Yii::t('default', 'About')?>"> <?php echo Yii::t('default', 'About')?>
  </a> <span> </span>
  </li>
  
  <li <?php echo (Yii::app()->controller->id == 'product') ? "class='current_page_item $product_menu'" : $product_menu?>>
    <a href="<?php echo Yii::app()->baseUrl?>/product/index"
      title="<?php echo Yii::t('default', 'Products')?>"> <?php echo Yii::t('default', 'Products')?> 
    </a> <span> </span>
    <?php if (!empty($categories)) {?>
    <ul class="sub-menu" style="display: none; opacity: 1;">
      <?php foreach ($categories as $key => $value) {?>
        <li
          <?php echo (Yii::app()->controller->id == 'product' && isset($_GET['catID']) && $_GET['catID'] == md5($key))?'class="current_page_item"':''?>>
          <a href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($key)?>"
          title="<?php echo $value?>"> <?php echo $value?>
          </a>
        </li>
      <?php }?>
    </ul>
    <?php }?>
  </li>
  
  <li
    <?php echo (Yii::app()->controller->id == 'site' && Yii::app()->controller->action->id == 'contact')?'class="current_page_item"':''?>>
    <a href="<?php echo Yii::app()->baseUrl?>/site/contact"
    title="<?php echo Yii::t('default', 'Contact')?>"> <?php echo Yii::t('default', 'Contact')?>
    </a> <span> </span>
  </li>
  
  <li
    <?php echo (Yii::app()->controller->id == 'article')?'class="current_page_item"':''?>>
    <a href="<?php echo Yii::app()->baseUrl?>/article"
    title="<?php echo Yii::t('default', 'Article')?>"> <?php echo Yii::t('default', 'Article')?>
    </a> <span> </span>
  </li>
</ul>
</nav>
<!-- Navigation - End -->
